home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / f90 / ishc.z / ishc
Encoding:
Text File  |  2002-10-03  |  2.4 KB  |  54 lines

  1. ISHC(3I)                                              Last changed: 4-13-99
  2.  
  3.  
  4. NNAAMMEE
  5.      IISSHHCC, IIIISSHHCC, JJIISSHHCC, KKIISSHHCC - Performs circular shift on an integer
  6.  
  7. SSYYNNOOPPSSIISS
  8.      IISSHHCC (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  9.      IIIISSHHCC (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  10.      JJIISSHHCC (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  11.      KKIISSHHCC (([II==]_i,, [SSHHIIFFTT==]_s_h_i_f_t))
  12.  
  13. IIMMPPLLEEMMEENNTTAATTIIOONN
  14.      UNICOS, UNICOS/mk, IRIX systems
  15.  
  16.      CF90, MIPSpro 7 Fortran 90, MIPSpro Fortran 77
  17.  
  18. SSTTAANNDDAARRDDSS
  19.      Fortran extensions
  20.  
  21. DDEESSCCRRIIPPTTIIOONN
  22.      The IISSHHCC, IIIISSHHCC, JJIISSHHCC, KKIISSHHCC intrinsic functions perform a circular
  23.      shift on an integer.  In this shift, the intrinsic rotates the
  24.      integer, left or right, by a specified number of bits.  Bits shifted
  25.      out of one end are shifted in or the other end.  No bits are lost.
  26.      These functions accept the following arguments:
  27.  
  28.      _i         Must be of type integer.  For IIIISSHHCC, must be of type integer
  29.                (KIND=2).  For JJIISSHHCC, must be of type integer (KIND=4).  For
  30.                KKIISSHHCC, must be of type integer (KIND=8).  This is the value
  31.                to be shifted.
  32.  
  33.      _s_h_i_f_t     Must be of the same type and kind type parameter as _a.  This
  34.                is the direction and distance of rotation.
  35.  
  36.                Positive shifts are left, toward the most significant bit.
  37.                Negative shifts are right, toward the least significant bit.
  38.                If _s_h_i_f_t is zero, no shift is performed.
  39.  
  40.      These are elemental intrinsic functions.  The names of these
  41.      intrinsics cannot be passed as arguments.
  42.  
  43. RREETTUURRNN VVAALLUUEESS
  44.      The result type and type parameter are the same as _i.  The result is
  45.      equal to _i rotated by _s_h_i_f_t bits.
  46.  
  47.      For an integer (KIND=4) argument, 32 bits are shifted.  If you want to
  48.      shift a 1-byte or 2-byte argument, declare it as KIND=1 or KIND=2,
  49.      respectively.
  50.  
  51. SSEEEE AALLSSOO
  52.      _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l for the printed version of this
  53.      man page.
  54.